<?php
/** .-------------------------------------------------------------------
 * |      Site: www.hdcms.com  www.houdunren.com
 * |      Date: 2018/7/2 上午12:54
 * |    Author: 向军大叔 <2300071698@qq.com>
 * '-------------------------------------------------------------------*/
/**
 * 权限配置
 * 为了避免其他模块有同名的权限，权限标识要以 '控制器@方法' 开始
 */
return [
    [
        'group' => '店铺分类管理',
        'permissions' => [
            ['title' => '店铺分类列表', 'name' => 'Modules\Mall\Http\Controllers\CateController@index', 'guard' => 'admin'],
			['title' => '添加店铺分类', 'name' => 'Modules\Mall\Http\Controllers\CateController@create', 'guard' => 'admin'],
			['title' => '编辑店铺分类', 'name' => 'Modules\Mall\Http\Controllers\CateController@edit', 'guard' => 'admin'],
			['title' => '删除店铺分类', 'name' => 'Modules\Mall\Http\Controllers\CateController@destroy', 'guard' => 'admin'],
        ]
    ],
	[
		'group' => '店铺管理',
		'permissions' => [
			['title' => '店铺列表', 'name' => 'Modules\Mall\Http\Controllers\MallController@index', 'guard' => 'admin'],
			['title' => '添加店铺', 'name' => 'Modules\Mall\Http\Controllers\MallController@create', 'guard' => 'admin'],
			['title' => '编辑店铺', 'name' => 'Modules\Mall\Http\Controllers\MallController@edit', 'guard' => 'admin'],
			['title' => '删除店铺', 'name' => 'Modules\Mall\Http\Controllers\MallController@destroy', 'guard' => 'admin'],
		]
	],
	[
		'group' => '海报管理',
		'permissions' => [
			['title' => '海报列表', 'name' => 'Modules\Mall\Http\Controllers\SliderController@index', 'guard' => 'admin'],
			['title' => '添加海报', 'name' => 'Modules\Mall\Http\Controllers\SliderController@create', 'guard' => 'admin'],
			['title' => '编辑海报', 'name' => 'Modules\Mall\Http\Controllers\SliderController@edit', 'guard' => 'admin'],
			['title' => '删除海报', 'name' => 'Modules\Mall\Http\Controllers\SliderController@destroy', 'guard' => 'admin'],
		]
	],
	[
		'group' => '网站设置',
		'permissions' => [
			['title' => '查看设置列表', 'name' => 'Modules\Mall\Http\Controllers\WebsetController@index', 'guard' => 'admin'],
			['title' => '编辑设置', 'name' => 'Modules\Mall\Http\Controllers\WebsetController@edit', 'guard' => 'admin'],
			['title' => '添加设置', 'name' => 'Modules\Mall\Http\Controllers\WebsetController@create', 'guard' => 'admin'],
		]
	],
];
